import request from '@/utils/request'
export function costActionList(data) { //项目费用-列表
    return request({
        url: '/project-management/api/project/spend/page',
        method: 'POST',
        data,
    })
}
export function costActionAdd(data) { //项目费用-添加
    return request({
        url: '/project-management/api/project/spend/save',
        method: 'POST',
        data,
    })
}
export function costActionDetails(id) { //项目费用-详情
    return request({
        url: '/project-management/api/project/spend/'+id,
        method: 'GET',
    })
}
//原 del
export function costActionDelete(id) { //项目费用-删除
    return request({
        url: '/project-management/api/project/spend/del/'+id,
        method: 'get',
    })
}
//原 put
export function costActionEdit(data) { //项目费用-编辑
    return request({
        url: '/project-management/api/project/spend/put/update',
        method: 'post',
        data,
    })
}
export function costActionExport(data) { //项目费用-导出
    return request({
        url: '/project-management/api/project/spend/export',
        responseType: 'arraybuffer',
        method: 'POST',
        data,
    })
}
